# Maintainer: Sireesh Kodali <scarface@disroot.org>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-motorola-potter
pkgdesc="Motorola Moto G5 Plus"
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
	firmware-qcom-adreno-a530
	firmware-motorola-potter
	linux-postmarketos-qcom-msm8953
	lk2nd-msm8953
	mkbootimg
	msm-firmware-loader
	postmarketos-base
	soc-qcom-msm8953
	soc-qcom-msm8953-modem
	tqftpserv
"
makedepends="devicepkg-dev"
subpackages="$pkgname-openrc"
source="deviceinfo modules-initfs"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

openrc() {
	depends="tqftpserv-openrc"
	install_if="$pkgname=$pkgver-r$pkgrel openrc"
	mkdir "$subpkgdir"
}

sha512sums="
c8c4c5ec686dfab80cc077632ed8e125c31fffe23a34536991acba40f1ce1083da451ea9c988309f63b0f488e0b4745e6815cb7b14ea4d2f0fbd61decc4e4f39  deviceinfo
93c77bfcde005c021ac9b671f9671923339f855e45d4fce8b2caea4748eccc08c8ec65bdfc85fef4900c974860613e8d62e6fe0ea95741ec1ab08c814148472b  modules-initfs
"
